<%@page import="java.util.ArrayList"%>
<%@page import="betfair.global.BFEvent"%>
<%@page import="java.util.List"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:useBean id="eventBean" class="at.kaok.beans.EventBean" scope="session" />
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
  <body>
  <%
        String myname =  (String)session.getAttribute("user");
        %>
 <% 
 
        String bfsesion = (String)session.getAttribute("bfSession");
 		List<BFEvent> events = eventBean.loadEvents(bfsesion);
 		List<Integer> list = new ArrayList();
		out.println(events);
        %>
        

<h1>Hello <%=myname%>!</h1>
<h2>Session <%=bfsesion %></h2>
<a href="/AnaliseWithMarketId.jsp">Anallise Game</a>
<select name="types" size="10">
   
    
       <%for(BFEvent cur : events){
    	   
       		out.println("<option value="+cur.getEventName()+">"+cur.getEventName()+"</option>") ;
       }%>
</select>

  </body>
</html>